﻿/*
$(document).ready(function () {
    $("#getNameddd").on('click', function (e)
    {
        var a = document.getElementById("gameName").value;

        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "/Game/MemGameView",
            data: "{}",
            dataType: "json",
            success: function (ActiveGame) {               //Senda í gagnagrunninn
                $("#gameName").text(ActiveGame.a);
            },
            error: function (xhr, err)                  //Error ef ekki í gagnagrunninn
            {
              /*  // Note: just for debugging purposes!
                alert("readyState: " + xhr.readyState +
                "\nstatus: " + xhr.status);
               alert("responseText: " + xhr.responseText);*/ /*
            }
        });
    });
}); */